#include "../app/app_message.h"
#include "../app/app_Common.h"

int main(void)
{
    char* json = NULL;
    char bytesbuf[50] = {0};
    int datalen = 0;
    char* json_str = "{\"conn_type\":1,\"id\":\"6E6E\",\"msg\":\"414243\"}";
    App_Message_json_to_bytes(json_str,bytesbuf,&datalen);
    App_Common_Printf_Bytes(bytesbuf,datalen);
    App_Message_bytes_to_json(&json,bytesbuf,50);
    printf("json:%s\n",json);
    free(json);
    return 0;
}
